package com.wuyangnju.lj.simulation.common;

public class Plan {
	private int x1, x2, x3, x4, x5;
	public Plan() {
	}

	public Plan(int x1, int x2, int x3, int x4, int x5) {
		this.x1 = x1;
		this.x2 = x2;
		this.x3 = x3;
		this.x4 = x4;
		this.x5 = x5;
	}

	public int getX1() {
		return x1;
	}

	public void setX1(int x1) {
		this.x1 = x1;
	}

	public int getX2() {
		return x2;
	}

	public void setX2(int x2) {
		this.x2 = x2;
	}

	public int getX3() {
		return x3;
	}

	public void setX3(int x3) {
		this.x3 = x3;
	}

	public int getX4() {
		return x4;
	}

	public void setX4(int x4) {
		this.x4 = x4;
	}

	public int getX5() {
		return x5;
	}

	public void setX5(int x5) {
		this.x5 = x5;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + x1;
		result = prime * result + x2;
		result = prime * result + x3;
		result = prime * result + x4;
		result = prime * result + x5;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Plan other = (Plan) obj;
		if (x1 != other.x1)
			return false;
		if (x2 != other.x2)
			return false;
		if (x3 != other.x3)
			return false;
		if (x4 != other.x4)
			return false;
		if (x5 != other.x5)
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "(" + x1 + ", " + x2 + ", " + x3 + "," + x4 + ", " + x5 + ")";
	}

}
